Gatsby Default StarterGatsby logo

#Binary #systems

  1. Separate the Integer and Fractional Parts: If your binary number has a decimal point, split it into the integer and fractional parts. For example, if you have the binary number 101.101, the integer part is 101 and the fractional part is 101.

  2. Convert the Integer Part to Decimal: Convert the integer part of the binary number to decimal. For example, if you have the binary integer 101, it is equal to 5 in decimal.

  3. Convert the Fractional Part to Decimal: Convert the fractional part of the binary number to decimal. For example, if you have the binary fractional part 101, it is equal to 5/8 in decimal, which is 0.625.

  4. Combine the Integer and Fractional Parts: Combine the decimal integer and fractional parts to get the final floating-point number. For example, if you have the binary number 101.101, the decimal number is 5.625.